﻿Public Partial Class OverviewUsers
    Inherits BaseUserControl

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Me.IsPostBack Then
            Rebind()
        End If
    End Sub

    Public Overrides Sub Rebind()
        Try
            ApplicationName.Text = "Application Name: " & Utility.GetString(Membership.ApplicationName)
            EnablePasswordReset.Text = "Enable Password Reset: " & Utility.GetString(Membership.EnablePasswordReset)
            EnablePasswordRetrieval.Text = "Enable Password Retrieval: " & Utility.GetString(Membership.EnablePasswordRetrieval)
            HashAlgorithmType.Text = "Hash Algorithm Type: " & Utility.GetString(Membership.HashAlgorithmType)
            MaxInvalidPasswordAttempts.Text = "Maximum Invalid Password Attempts: " & Utility.GetString(Membership.MaxInvalidPasswordAttempts)
            MinRequiredNonAlphanumericCharacters.Text = "Minimum Required Non Alphanumeric Characters: " & Utility.GetString(Membership.MinRequiredNonAlphanumericCharacters)
            MinRequiredPasswordLength.Text = "Minimum Required Password Length: " & Utility.GetString(Membership.MinRequiredPasswordLength)
            PasswordAttemptWindow.Text = "Password Attempt Window: " & Utility.GetString(Membership.PasswordAttemptWindow)
            PasswordStrengthRegularExpression.Text = "Password Strength Regular Expression: " & Utility.GetString(Membership.PasswordStrengthRegularExpression)
            RequiresQuestionAndAnswer.Text = "Requires Question And Answer: " & Utility.GetString(Membership.RequiresQuestionAndAnswer)
            UserIsOnlineTimeWindow.Text = "User Is Online Time Window: " & Utility.GetString(Membership.UserIsOnlineTimeWindow)
            RequiresUniqueEmail.Text = "Requires Unique Email: " & Membership.Provider.RequiresUniqueEmail
            PasswordFormat.Text = "Password Format: " & Membership.Provider.PasswordFormat.ToString
            Description.Text = "Description: " & Membership.Provider.Description
        Catch ex As Exception
            Me.RaiseError(ex)
        End Try
    End Sub

    Private Sub Page_OnUpdate(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.OnUpdate
        Rebind()
    End Sub

End Class